package com.qian.service.ddj.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

/**
 * 登录二维码
 */
@Getter
@Setter
@ToString
@Entity
@DynamicInsert
@DynamicUpdate
public class DdjLoginCode extends BaseEntity<Integer> {

    private String account;
    private String remark;
    @Column(columnDefinition = "TEXT")
    private String code;
    @CreationTimestamp
    private Date createTime;
    private Byte status;
}
